<?php
///**** mysql preferences
$conf['host']='{mysql_host}';
$conf['database']='{mysql_database}';
$conf['user']='{mysql_user}';
$conf['pass']='{mysql_pass}';

///**** advanced configuration

$conf['prefix']='{mysql_prefix}'; //prefix - rest tables
$conf['mysql_display_errors'] = false; //displaying sql errors
$conf['display_errors'] = false; //displaying php errors
$conf['mysql_character_set'] = '{mysql_coding}'; //mysql coding eg. latin1, latin2 utf8
$conf['mysql_cache'] = true; //mysql caching
$conf['dbtype'] = 'mysql'; //only mysql yet

$conf['prefix_users']  = $conf['prefix']; //prefix - users table
$conf['prefix_groups'] = $conf['prefix']; //prefix - groups tables
$conf['prefix_ranks'] = $conf['prefix']; //prefix - ranks table
$conf['prefix_msg'] = $conf['prefix']; //prefix - msg tables
//advanced mysql config end

//**** other config
$conf['html_character_set'] = 'utf-8'; //html coding of your themes eg. utf-8
$conf['tpl_cache'] = false;  //turn template_caching on or off (works only in some modules)
//session name, change if you have more than one (and you dont want to connect them)  script on same domain eg. yoursite.com/langito1 and yoursite.com/
$conf['session_name']='langito';

//colors of captcha
$conf['code_img_bg_default']=array('red' => 236, 'green' => 236, 'blue' => 236); //bgcolor in code image in register_form
$conf['code_img_tx_default']=array('red' => 0, 'green' => 0, 'blue' => 0); //text color in code image in register_form
//$conf['code_img_bg_YourTemplateName']=...
//$conf['code_img_img_YourTemplateName']=...

//other config end 

//**** do not edit below, as far as you know what you are doing
include('includes/classes/'.$conf['dbtype'].'.db.class.php');
include('includes/classes/template.class.php');

//getting rest of config from database
$db = new dbquery;

$db->cache('conf');
$db->query("SELECT `name`, `value` FROM $conf[prefix]conf");

while($c = $db->fetch_object()) {
	if(strpos($c->value, "[array]")!==false) {
		$ereg=ereg_replace("\[array\](.+)\[\/array\]", "\\1", $c->value);
		$ereg=explode("=>", $ereg);
		for($i=0;$i<count($ereg);$i++)
			$conf[$c->name][$i]=stripslashes($ereg[$i]);
	}
	elseif($c->value)
		$conf[$c->name]=stripslashes($c->value);
	else
		$conf[$c->name]=NULL;
}	
//

//get conf from plugins/std/conf/
$handle=opendir('plugins/std/conf/');
while($file=readdir($handle)) {
	if(!is_dir($path.$file) && strpos($file, '.php')!==false) include('plugins/std/conf/'.$file);
}
closedir($handle);
//

?>
